{"componentChunkName":"component---src-templates-landing-page-template-tsx","path":"/meal-kits/diabetes-plan/HPN","result":{"data":{"contentfulLandingPage":{"id":"30eced58-c440-51b8-95ae-675c540c7c13","__typename":"ContentfulLandingPage","name":"Diabetes Plan Landing Page (HPN version)","pageSections":[{"__typename":"ContentfulSimpleJumbotron","id":"4d0bfa06-a5f6-5ed0-8f4d-9275a5e97445","image":{"id":"382dd2e6-04ac-5b32-b829-f15a72f1c847","__typename":"ContentfulResponsiveImageSet","alternateText":"Diabetes plan jumbotron","small":{"id":"09ee5138-f972-53d0-8c8e-8dbb06789cde","description":"","file":{"url":"//images.ctfassets.net/h5bq1gt24416/2oRexcCqWyn6UL8szpqzMA/e07d310d0bf8cf7ad6beaab20a694614/Diabetes_Plan_jumbo_S.jpg"}},"medium":{"id":"bbc16a0b-789d-5eaa-ac6a-e9e2d26baccf","description":"","file":{"url":"//images.ctfassets.net/h5bq1gt24416/016iK9GGss77TdUQ0SjEyM/a990179d1c9892e7c0a98b7fd96df101/Diabetes_Plan_jumbo_M.jpg"}},"large":{"id":"8825b7d3-3f2b-5d92-9661-bae7438e8a0d","description":"","file":{"url":"//images.ctfassets.net/h5bq1gt24416/4Le6S5V7KIEoRtHPVDb3ok/2c3554e9f929447545a4dc81aefc31cd/Diabetes_Plan_jumbo_L.jpg"}}},"link":null,"scrollTarget":null},{"__typename":"ContentfulPageSection","id":"a3b9ada8-7149-564a-a402-3fda8a9aee6e","title":null,"childContentfulPageSectionSubtitleTextNode":null,"backgroundColor":null,"wrapContent":true,"fullWidth":null,"childContentfulPageSectionDescriptionTextNode":null,"actionButton":null,"content":[{"__typename":"ContentfulMerchSlot","id":"5e50636e-e77a-5ea1-821e-077e46d2b140","name":"Diabetes Cookbook Merch Banner","link":{"relativePath":null,"absoluteUrl":"https://try.myfoodbag.co.nz/diabetes-friendly-cookbook/"},"responsiveImageSet":{"id":"5e56af77-5598-5d5d-8c32-6d365f1b87a0","__typename":"ContentfulResponsiveImageSet","alternateText":"Diabetes Cookbook Merch Banner","small":{"id":"aace7d7f-0dba-550b-8f2f-0ca041cbc5ad","description":"","file":{"url":"//images.ctfassets.net/h5bq1gt24416/D4wYwmSnpezjwmWHtLR9D/160c2fdefcdf4badd609f252e8c2e8c5/202511_Diabetes_Action_Month_Jumobtron_Book_Merch_S.jpg"}},"medium":{"id":"7eba5878-000f-50f3-a640-0e1dbc5a5262","description":"","file":{"url":"//images.ctfassets.net/h5bq1gt24416/5RMQsMLEbMqnEPjS3UMitA/eb5a27d82ad4b833cf64b1f20418383c/202511_Diabetes_Action_Month_Jumobtron_Book_Merch_M.jpg"}},"large":{"id":"37008be3-19a5-5bf5-abf4-a09d7b1029a0","description":"","file":{"url":"//images.ctfassets.net/h5bq1gt24416/21ETIXFBNw0aEamdbhcEbN/e9f94e8434adc5529d71da9e882e13cd/202511_Diabetes_Action_Month_Jumobtron_Book_Merch_L.jpg"}}}}],"backgroundImage":null,"leftImage":null,"rightImage":null,"variant":"default"},{"__typename":"ContentfulPageSection","id":"e91bd9a7-d3ee-5911-9130-89327518d8eb","title":"We're making healthy eating easier!","childContentfulPageSectionSubtitleTextNode":{"subtitle":"Our Diabetes Plan teaches how to cook Diabetes-Friendly meals at home to help your patients eat healthier, prevent or manage type 2 diabetes. All our recipes are chef developed, supported by Diabetes New Zealand and approved by our in-house nutrition team."},"backgroundColor":{"colorHex":"#F9F3EA"},"wrapContent":true,"fullWidth":null,"childContentfulPageSectionDescriptionTextNode":null,"actionButton":null,"content":[{"__typename":"ContentfulProductSelectorTabset","id":"e53a044e-32d4-5ce9-9e92-e07e11429e92","productSelector":[{"brand":"MFB","heading":"Choose from nutritionist-approved recipes every week","displayType":"Proof Points","internalName":"MFB Product Selector (Diabetes Friendly Proof Points)","nightPeopleSectionHeading":"Select your plan","preferencePreSelectedOption":"MFBDiabetes","preferenceSectionHeading":"What's your recipe preference? ","primaryCallToActionText":"Get Started","showBrandCampaign":false,"adminCampaignId":null,"showPromoMessaging":false,"enrollToCampaign":false,"hideRecipeCarousel":false,"proofPoints":[{"title":"Diabetes Friendly recipes","description":"Nutritionist-approved recipes to choose from every week, designed to suit the whole family.","image":{"id":"97e79632-599a-5298-8a7e-b4d30120086d","description":"","file":{"url":"//images.ctfassets.net/h5bq1gt24416/7nqbnofZEvzQaaGY8Z2E0z/e2d95c5aac995de562df852c53be5c10/low_carb_icon_low_carb.png"}},"color":null,"cardType":"Small","button":null,"alignment":null},{"title":"High quality carbs","description":"Low Glycaemic Index carbs like bulgur wheat and quinoa featuring along with veggie carbs to support blood sugar control.","image":{"id":"88e1bd26-974e-5602-8a20-b768d9f7aad2","description":"","file":{"url":"//images.ctfassets.net/h5bq1gt24416/1ajcvWyfCtIyjnLIKokVkP/6a0aa513ca0eb08f9c775fbc46318007/low_carb_icon_low_gi.png"}},"color":null,"cardType":"Small","button":null,"alignment":null},{"title":"Focus on whole foods","description":"Fibre containing foods including vegetables (2-3+ serves per plate), legumes, whole grains, nuts and seeds.","image":{"id":"bf0d930f-dc77-5d93-9125-98a12338a89c","description":"","file":{"url":"//images.ctfassets.net/h5bq1gt24416/2Fpo8LU6E4qrtqphNbjWGa/61cdca8c8f57f5dfbd93af55ad086eb2/low_carb_icon_whole_foods.png"}},"color":null,"cardType":"Small","button":null,"alignment":null}],"excludePreferencesFromInWeekSales":["MFBDiabetes"],"recommendedServings":null}]}],"backgroundImage":null,"leftImage":null,"rightImage":null,"variant":"default"},{"__typename":"ContentfulPageSection","id":"b9fc26f0-1bac-5a9b-8627-a4d285251a1f","title":"How it Works","childContentfulPageSectionSubtitleTextNode":null,"backgroundColor":{"colorHex":"#F9F3EA"},"wrapContent":true,"fullWidth":null,"childContentfulPageSectionDescriptionTextNode":null,"actionButton":null,"content":[{"__typename":"ContentfulHeroCard","id":"fa5d067f-50b0-5cb5-aaa6-8186a4c86fc8","title":"Choose your recipes","description":"Select from a range of delicious, nutritious dinners developed by our local chefs","image":{"id":"4d867088-3709-5809-9b5d-d5929f18415a","description":"","file":{"url":"//images.ctfassets.net/h5bq1gt24416/6LWtY2fUQfpJVsbOzPLdSz/febe83032437ea2166510502a1be9350/New_homepage_icon_Choose_your_recipes.svg"}},"color":null,"cardType":null,"button":null,"alignment":null},{"__typename":"ContentfulHeroCard","id":"e298c897-c87e-5dff-b8c0-eaf52a79b9e2","title":"We deliver to your door","description":"We order, pack and ship each week to deliver the freshest ingredients","image":{"id":"98a25332-569b-5c8d-87ac-7e40510637af","description":"","file":{"url":"//images.ctfassets.net/h5bq1gt24416/3LAcmMamVyhLVfavVKNq7g/1e742d2cea04c064e96e71b89137950d/New_homepage_icon_delivered_to_your_door.svg"}},"color":null,"cardType":null,"button":null,"alignment":null},{"__typename":"ContentfulHeroCard","id":"4e33679e-cf0f-562d-a42e-df7a843b9320","title":"Cook, enjoy, repeat","description":"With easy to follow instructions, you’ll enjoy a delicious dinner time routine in no time!","image":{"id":"b44bc038-e405-519c-9a48-d906b249bc78","description":"","file":{"url":"//images.ctfassets.net/h5bq1gt24416/vYCL9uA1Ejhfnimy2ySyY/bce4fdf1ecaa3c0aff4d34c4bf0a271d/MFB_icon_Cook_and_enjoy.png"}},"color":null,"cardType":null,"button":null,"alignment":null}],"backgroundImage":null,"leftImage":null,"rightImage":null,"variant":"default"},{"__typename":"ContentfulTwoColumnSection","id":"51a663ab-b927-55f7-ac12-360660a1b68b","title":"Why choose the My Food Bag Diabetes Plan?","imageOnLeftLayout":true,"childContentfulTwoColumnSectionTextTextNode":{"text":"We’re on a mission to help New Zealanders eat and live well.\n\nYou may have been told you’re at risk of developing type 2 diabetes or need to improve your diet to take better control of your diabetes. Whatever the case, if you’re ready to eat better (without comprising on taste) but don’t know where to start, then our range of Diabetes-Friendly meals could be just what the doctor ordered!\n\nChoose from 3, 4, or 5 nights of meals for serves 2 or 4 delivered to your doorstep with everything you need to create healthy, tasty and balanced dinners.\n\nFor the first 12 weeks, you will also receive expert-led nutrition and lifestyle content delivered to your inbox to help you build long-lasting habits for you and your family. \n\nOur food & nutrition approach is grounded in the latest evidence and supported by Diabetes New Zealand. We know there isn’t a one-size-fits-all approach to eating for diabetes but we do know that a diet based around whole foods with plenty of plants is the key to blood glucose control, weight management, and overall wellbeing.\n\nRecipes include balanced, delicious options that help you to explore a wide range of cuisines such as Warming Thai Chicken Curry, Mediterranean Spinach & Feta Balls and Low Carb Beef Fajita Bowl – with new recipes to choose from each week."},"images":[{"id":"2aa939ed-2bfe-5447-995c-1386c0f330c5","__typename":"ContentfulResponsiveImageSet","alternateText":"Three healthy diabetes plan meals presented on dinner plates","small":{"id":"650acb86-80ad-5d16-8637-2b56ff664d1f","description":"","file":{"url":"//images.ctfassets.net/h5bq1gt24416/1I3sRKhiFzWzXfN6osKIed/1321a8a5c60e14a4f4f26e5456ada22b/Diabetes-image-S.png"}},"medium":{"id":"66371b60-a062-5d0c-a94d-85873f4ca62a","description":"","file":{"url":"//images.ctfassets.net/h5bq1gt24416/1KXuJUXUrpD0ZyUVXdy6Bt/4da05fbe9df4d54655863821ee3471ed/Diabetes-image-M.png"}},"large":{"id":"aa50f4ed-2843-5dfa-81e0-e4cb5496bc82","description":"","file":{"url":"//images.ctfassets.net/h5bq1gt24416/7CtT3mObFbeU6hNydvNlzB/d18b1c0ab2d85b722b11711638525144/Diabetes-image-L.png"}}}],"callToAction":null,"backgroundColor":null,"textAlignment":null,"textColor":null,"skewed":null},{"__typename":"ContentfulPageSection","id":"a84d91ba-70a9-535e-8dd6-04c4a0078919","title":"Confused about what to eat for Type 2 Diabetes and want to learn more?","childContentfulPageSectionSubtitleTextNode":null,"backgroundColor":{"colorHex":"#F9F3EA"},"wrapContent":true,"fullWidth":null,"childContentfulPageSectionDescriptionTextNode":null,"actionButton":{"label":"Read about it here","link":{"relativePath":"/eating-for-diabetes","absoluteUrl":null},"scrollTarget":null,"buttonType":null},"content":null,"backgroundImage":null,"leftImage":null,"rightImage":null,"variant":"default"},{"__typename":"ContentfulPageSection","id":"46644927-f4ca-51e6-a65a-04961ed56b3a","title":"Frequently asked questions","childContentfulPageSectionSubtitleTextNode":null,"backgroundColor":null,"wrapContent":true,"fullWidth":null,"childContentfulPageSectionDescriptionTextNode":null,"actionButton":null,"content":[{"__typename":"ContentfulFaqCard","id":"7e98f09f-7f15-5146-be78-9ad36cf311ad","question":"Who are these meals suitable for?","answer":{"answer":"Our Diabetes-Friendly meals are designed for anyone who is living with diabetes or anyone who is at risk of type 2 diabetes (known as insulin resistance). The meals are also suitable for anyone who wants to eat better and feel better – including the rest of the family. People living with Type 1 diabetes or gestational diabetes will benefit from eating a healthy and balanced diet but will have individual dietary considerations. If you have type 2 diabetes and plan to make changes to your diet it is important to discuss this with your healthcare professional first to ensure any changes to your diet are appropriate for your age, activity levels, preferences, current medications (including diabetes medications) and any other health conditions you are managing. Your health professional is best to provide tailored advice for your personal needs. "}},{"__typename":"ContentfulFaqCard","id":"a40f9a70-4f2d-5907-97c8-f74a08f26ea9","question":"What dietary guidelines do the meals follow?","answer":{"answer":"Our Diabetes-friendly recipes are centred around whole food ingredients. We’ve considered the amount and quality of carbohydrate and base meals around wholegrain, wholemeal, veggie and low glycaemic index carbs (like brown rice, bulgur wheat, legumes), lean proteins and 2.5 to 3 serves of vegetables per plate. We carefully consider energy (calories), protein, carbs, sugar, saturated fat and salt. A range of dietary patterns and macronutrient intakes are suitable for diabetes management so you can expect to see a variety of meal types including Low Carb, Mediterranean, Vegetarian, Vegan and healthier twists on family favourites."}},{"__typename":"ContentfulFaqCard","id":"95f995cb-29a7-5901-b7f6-cbf149711564","question":"What nutritional information do you provide? ","answer":{"answer":"For every recipe, we show you full nutrition information including the calories/kilojoules, protein, total fat, saturated fat, carbohydrate, sugars and sodium per serve so you can choose meals that fit with your health goals no matter what style of diet you are following. \n\nPlease note our per serve nutrition information is based on standard produce sizes and at times there may be variation or changes (e.g. you may receive different sized potatoes or carrots week to week, or variations in produce due to availability).  If you are on insulin, you will still need to count carbs to determine your medication dose."}},{"__typename":"ContentfulFaqCard","id":"b5762fa6-c8a8-531d-84f9-4d92acdc16c8","question":"Should I avoid all carbohydrates when following a diabetes-friendly diet?","answer":{"answer":"No – it’s not necessary. However, the key focus should be to replace processed white/refined carbs (e.g. white rice, white bread, burger buns) with small portions of wholegrain, high-fibre carbohydrates (e.g. brown bread, brown rice, quinoa, bulgur wheat) and other low glycemic carbohydrate foods like legumes. Foods which contribute added sugars like sugary drinks should be minimised or avoided altogether because of the impact they have on blood sugar levels. "}},{"__typename":"ContentfulFaqCard","id":"a094379a-53c5-5251-9ccb-5ce676dde3ec","question":"Will diabetes-friendly meals help me to lose weight?","answer":{"answer":"Diabetes-friendly meals can help to improve the quality of your diet. Meals contain ingredients that help to increase your fibre intake such as vegetables, whole grains, legumes, nuts and seeds.  Some people may find that this way of eating may help them to lose weight or maintain previous weight loss. However, there are many factors that contribute to your body size including your age, medications, genetics, and lifestyle. The latest guidelines suggest that if you are overweight, even a small reduction in body weight (<5%) is linked with significant improvements in blood sugar control, blood pressure and cholesterol. "}},{"__typename":"ContentfulFaqCard","id":"06cfcf17-aede-547c-8cfc-cc43dd99eabd","question":"What if I have other health conditions or risk factors?","answer":{"answer":"Before making any major changes to your diet, check with your GP, nurse, dietitian or diabetes educator first. They can advise on the suitability and safety of Diabetes-Friendly meals for you based on your overall health and any other health conditions that you are managing.  \n\nFor example, if you have hypertension (high blood pressure) or diabetic renal disease you will need to follow specific guidelines to reduce your salt intake. If you have high cholesterol, you will need to follow specific advice to reduce your saturated fat intake and increase your intake of heart-healthy poly and mono-unsaturated fats."}}],"backgroundImage":null,"leftImage":null,"rightImage":null,"variant":"default"},{"__typename":"ContentfulPageSection","id":"57f598ca-a25a-57bf-9450-13c33d3f86a5","title":null,"childContentfulPageSectionSubtitleTextNode":null,"backgroundColor":{"colorHex":"#F9F3EA"},"wrapContent":true,"fullWidth":null,"childContentfulPageSectionDescriptionTextNode":null,"actionButton":null,"content":[{"__typename":"ContentfulRenderRawHtml","id":"8869f009-4650-5086-84b7-ab930c402d64","title":"Mailchimp subscribe form","html":{"html":"<div id=\"mc_embed_shell\">\n      <link href=\"https://cdn-images.mailchimp.com/embedcode/classic-061523.css\" rel=\"stylesheet\" type=\"text/css\">\n  <style type=\"text/css\">\n        #mc_embed_signup{background:#fff; false;clear:left; font:14px Helvetica,Arial,sans-serif; width: 600px;}\n        /* Add your own Mailchimp form style overrides in your site stylesheet or in this style block.\n           We recommend moving this block and the preceding CSS link to the HEAD of your HTML file. */\n</style>\n<div id=\"mc_embed_signup\">\n    <form action=\"https://myfoodbag.us11.list-manage.com/subscribe/post?u=b2b2f55ddf83beb92d2e6fd58&amp;id=4d4be473ce&amp;f_id=00c6a9e0f0\" method=\"post\" id=\"mc-embedded-subscribe-form\" name=\"mc-embedded-subscribe-form\" class=\"validate\" target=\"_blank\">\n        <div id=\"mc_embed_signup_scroll\"><h2>Subscribe to our newsletter!</h2>\n            <div class=\"indicates-required\"><span class=\"asterisk\">*</span> indicates required</div>\n            <div class=\"mc-field-group\"><label for=\"mce-FNAME\">First Name </label><input type=\"text\" name=\"FNAME\" class=\" text\" id=\"mce-FNAME\" value=\"\"></div><div class=\"mc-field-group\"><label for=\"mce-LNAME\">Last Name </label><input type=\"text\" name=\"LNAME\" class=\" text\" id=\"mce-LNAME\" value=\"\"></div><div class=\"mc-field-group\"><label for=\"mce-EMAIL\">Email Address <span class=\"asterisk\">*</span></label><input type=\"email\" name=\"EMAIL\" class=\"required email\" id=\"mce-EMAIL\" required=\"\" value=\"\"></div><div class=\"mc-field-group\"><label for=\"mce-ROLE\">Role </label><select name=\"ROLE\" class=\"\" id=\"mce-ROLE\"><option value=\"\"></option><option value=\"GP\">GP</option><option value=\"Nurse\">Nurse</option><option value=\"Dietitian\">Dietitian</option><option value=\"Nutritionist\">Nutritionist</option><option value=\"Health Coach\">Health Coach</option><option value=\"Practice Manager\">Practice Manager</option><option value=\"Specialist\">Specialist</option><option value=\"Other\">Other</option></select></div><div class=\"mc-field-group\"><label for=\"mce-ORG\">Organiation </label><input type=\"text\" name=\"ORG\" class=\" text\" id=\"mce-ORG\" value=\"\"></div><div class=\"mc-field-group\"><label for=\"mce-REGION\">Region </label><select name=\"REGION\" class=\"\" id=\"mce-REGION\"><option value=\"\"></option><option value=\"Northland\">Northland</option><option value=\"Auckland\">Auckland</option><option value=\"Waikato\">Waikato</option><option value=\"Bay of Plenty\">Bay of Plenty</option><option value=\"Gisborne\">Gisborne</option><option value=\"Hawke's Bay\">Hawke's Bay</option><option value=\"Taranaki\">Taranaki</option><option value=\"Manawatū-Whanganui\">Manawatū-Whanganui</option><option value=\"Wellington\">Wellington</option><option value=\"Tasman\">Tasman</option><option value=\"Nelson\">Nelson</option><option value=\"Marlborough\">Marlborough</option><option value=\"West Coast\">West Coast</option><option value=\"Canterbury\">Canterbury</option><option value=\"Otago\">Otago</option><option value=\"Southland\">Southland</option></select></div><div class=\"mc-field-group\"><label for=\"mce-SPECIALTY\">Specialty </label><select name=\"SPECIALTY\" class=\"\" id=\"mce-SPECIALTY\"><option value=\"\"></option><option value=\"Diabetes\">Diabetes</option><option value=\"Weight Management/Bariatrics\">Weight Management/Bariatrics</option><option value=\"General Practice/Primary Care\">General Practice/Primary Care</option><option value=\"Other\">Other</option></select></div>\n<div hidden=\"\"><input type=\"hidden\" name=\"tags\" value=\"9270345\"></div>\n        <div id=\"mce-responses\" class=\"clear\">\n            <div class=\"response\" id=\"mce-error-response\" style=\"display: none;\"></div>\n            <div class=\"response\" id=\"mce-success-response\" style=\"display: none;\"></div>\n        </div><div aria-hidden=\"true\" style=\"position: absolute; left: -5000px;\"><input type=\"text\" name=\"b_b2b2f55ddf83beb92d2e6fd58_4d4be473ce\" tabindex=\"-1\" value=\"\"></div><div class=\"clear\"><input type=\"submit\" name=\"subscribe\" id=\"mc-embedded-subscribe\" class=\"button\" value=\"Subscribe\"></div>\n    </div>\n</form>\n</div>\n<script type=\"text/javascript\" src=\"//s3.amazonaws.com/downloads.mailchimp.com/js/mc-validate.js\"></script><script type=\"text/javascript\">(function($) {window.fnames = new Array(); window.ftypes = new Array();fnames[1]='FNAME';ftypes[1]='text';fnames[2]='LNAME';ftypes[2]='text';fnames[0]='EMAIL';ftypes[0]='email';fnames[7]='ROLE';ftypes[7]='dropdown';fnames[8]='ORG';ftypes[8]='text';fnames[10]='REGION';ftypes[10]='dropdown';fnames[9]='SPECIALTY';ftypes[9]='dropdown';fnames[3]='ADDRESS';ftypes[3]='address';fnames[4]='PHONE';ftypes[4]='phone';fnames[5]='BIRTHDAY';ftypes[5]='birthday';fnames[6]='COMPANY';ftypes[6]='text';}(jQuery));var $mcj = jQuery.noConflict(true);\n    // SMS Phone Multi-Country Functionality\n    if(!window.MC) {\n      window.MC = {};\n    }\n    window.MC.smsPhoneData = {\n      defaultCountryCode: 'NZ',\n      programs: [],\n      smsProgramDataCountryNames: []\n    };\n\n    function getCountryUnicodeFlag(countryCode) {\n       return countryCode.toUpperCase().replace(/./g, (char) => String.fromCodePoint(char.charCodeAt(0) + 127397))\n    };\n\n    // HTML sanitization function to prevent XSS\n    function sanitizeHtml(str) {\n      if (typeof str !== 'string') return '';\n      return str\n        .replace(/&/g, '&amp;')\n        .replace(/</g, '&lt;')\n        .replace(/>/g, '&gt;')\n        .replace(/\"/g, '&quot;')\n        .replace(/'/g, '&#x27;')\n        .replace(/\\//g, '&#x2F;');\n    }\n\n    // URL sanitization function to prevent javascript: and data: URLs\n    function sanitizeUrl(url) {\n      if (typeof url !== 'string') return '';\n      const trimmedUrl = url.trim().toLowerCase();\n      if (trimmedUrl.startsWith('javascript:') || trimmedUrl.startsWith('data:') || trimmedUrl.startsWith('vbscript:')) {\n        return '#';\n      }\n      return url;\n    }\n\n    const getBrowserLanguage = () => {\n      if (!window?.navigator?.language?.split('-')[1]) {\n        return window?.navigator?.language?.toUpperCase();\n      }\n      return window?.navigator?.language?.split('-')[1];\n    };\n\n    function getDefaultCountryProgram(defaultCountryCode, smsProgramData) {\n      if (!smsProgramData || smsProgramData.length === 0) {\n        return null;\n      }\n\n      const browserLanguage = getBrowserLanguage();\n\n      if (browserLanguage) {\n        const foundProgram = smsProgramData.find(\n          (program) => program?.countryCode === browserLanguage,\n        );\n        if (foundProgram) {\n          return foundProgram;\n        }\n      }\n\n      if (defaultCountryCode) {\n        const foundProgram = smsProgramData.find(\n          (program) => program?.countryCode === defaultCountryCode,\n        );\n        if (foundProgram) {\n          return foundProgram;\n        }\n      }\n\n      return smsProgramData[0];\n    }\n\n    function updateSmsLegalText(countryCode, fieldName) {\n      if (!countryCode || !fieldName) {\n        return;\n      }\n\n      const programs = window?.MC?.smsPhoneData?.programs;\n      if (!programs || !Array.isArray(programs)) {\n        return;\n      }\n\n      const program = programs.find(program => program?.countryCode === countryCode);\n      if (!program || !program.requiredTemplate) {\n        return;\n      }\n\n      const legalTextElement = document.querySelector('#legal-text-' + fieldName);\n      if (!legalTextElement) {\n        return;\n      }\n\n      // Remove HTML tags and clean up the text\n      const divRegex = new RegExp('</?[div][^>]*>', 'gi');\n      const fullAnchorRegex = new RegExp('<a.*?</a>', 'g');\n      const anchorRegex = new RegExp('<a href=\"(.*?)\" target=\"(.*?)\">(.*?)</a>');\n\n      const template = program.requiredTemplate.replace(divRegex, '');\n\n      legalTextElement.textContent = '';\n      const parts = template.split(/(<a href=\".*?\" target=\".*?\">.*?<\\/a>)/g);\n      parts.forEach(function(part) {\n        if (!part) {\n          return;\n        }\n        const anchorMatch = part.match(/<a href=\"(.*?)\" target=\"(.*?)\">(.*?)<\\/a>/);\n        if (anchorMatch) {\n          const linkElement = document.createElement('a');\n          linkElement.href = sanitizeUrl(anchorMatch[1]);\n          linkElement.target = sanitizeHtml(anchorMatch[2]);\n          linkElement.textContent = sanitizeHtml(anchorMatch[3]);\n          legalTextElement.appendChild(linkElement);\n        } else {\n          legalTextElement.appendChild(document.createTextNode(part));\n        }\n      });\n\n    }\n\n    function generateDropdownOptions(smsProgramData) {\n      if (!smsProgramData || smsProgramData.length === 0) {\n        return '';\n      }\n\n      return smsProgramData.map(program => {\n        const flag = getCountryUnicodeFlag(program.countryCode);\n        const countryName = getCountryName(program.countryCode);\n        const callingCode = program.countryCallingCode || '';\n        // Sanitize all values to prevent XSS\n        const sanitizedCountryCode = sanitizeHtml(program.countryCode || '');\n        const sanitizedCountryName = sanitizeHtml(countryName || '');\n        const sanitizedCallingCode = sanitizeHtml(callingCode || '');\n        return '<option value=\"' + sanitizedCountryCode + '\">' + sanitizedCountryName + ' ' + sanitizedCallingCode + '</option>';\n      }).join('');\n    }\n\n    function getCountryName(countryCode) {\n      if (window.MC?.smsPhoneData?.smsProgramDataCountryNames && Array.isArray(window.MC.smsPhoneData.smsProgramDataCountryNames)) {\n        for (let i = 0; i < window.MC.smsPhoneData.smsProgramDataCountryNames.length; i++) {\n          if (window.MC.smsPhoneData.smsProgramDataCountryNames[i].code === countryCode) {\n            return window.MC.smsPhoneData.smsProgramDataCountryNames[i].name;\n          }\n        }\n      }\n      return countryCode;\n    }\n\n    function getDefaultPlaceholder(countryCode) {\n      if (!countryCode || typeof countryCode !== 'string') {\n        return '+1 000 000 0000'; // Default US placeholder\n      }\n\n            var mockPlaceholders = [\n        {\n          countryCode: 'US',\n          placeholder: '+1 000 000 0000',\n          helpText: 'Include the US country code +1 before the phone number',\n        },\n        {\n          countryCode: 'GB',\n          placeholder: '+44 0000 000000',\n          helpText: 'Include the GB country code +44 before the phone number',\n        },\n        {\n          countryCode: 'CA',\n          placeholder: '+1 000 000 0000',\n          helpText: 'Include the CA country code +1 before the phone number',\n        },\n        {\n          countryCode: 'AU',\n          placeholder: '+61 000 000 000',\n          helpText: 'Include the AU country code +61 before the phone number',\n        },\n        {\n          countryCode: 'DE',\n          placeholder: '+49 000 0000000',\n          helpText: 'Fügen Sie vor der Telefonnummer die DE-Ländervorwahl +49 ein',\n        },\n        {\n          countryCode: 'FR',\n          placeholder: '+33 0 00 00 00 00',\n          helpText: 'Incluez le code pays FR +33 avant le numéro de téléphone',\n        },\n        {\n          countryCode: 'ES',\n          placeholder: '+34 000 000 000',\n          helpText: 'Incluya el código de país ES +34 antes del número de teléfono',\n        },\n        {\n          countryCode: 'NL',\n          placeholder: '+31 0 00000000',\n          helpText: 'Voeg de NL-landcode +31 toe vóór het telefoonnummer',\n        },\n        {\n          countryCode: 'BE',\n          placeholder: '+32 000 00 00 00',\n          helpText: 'Incluez le code pays BE +32 avant le numéro de téléphone',\n        },\n        {\n          countryCode: 'CH',\n          placeholder: '+41 00 000 00 00',\n          helpText: 'Fügen Sie vor der Telefonnummer die CH-Ländervorwahl +41 ein',\n        },\n        {\n          countryCode: 'AT',\n          placeholder: '+43 000 000 0000',\n          helpText: 'Fügen Sie vor der Telefonnummer die AT-Ländervorwahl +43 ein',\n        },\n        {\n          countryCode: 'IE',\n          placeholder: '+353 00 000 0000',\n          helpText: 'Include the IE country code +353 before the phone number',\n        },\n        {\n          countryCode: 'IT',\n          placeholder: '+39 000 000 0000',\n          helpText: 'Includere il prefisso internazionale IT +39 prima del numero di telefono',\n        },\n      ];\n\n      const selectedPlaceholder = mockPlaceholders.find(function(item) {\n        return item && item.countryCode === countryCode;\n      });\n\n      return selectedPlaceholder ? selectedPlaceholder.placeholder : mockPlaceholders[0].placeholder;\n    }\n\n    function updatePlaceholder(countryCode, fieldName) {\n      if (!countryCode || !fieldName) {\n        return;\n      }\n\n      const phoneInput = document.querySelector('#mce-' + fieldName);\n      if (!phoneInput) {\n        return;\n      }\n\n      const placeholder = getDefaultPlaceholder(countryCode);\n      if (placeholder) {\n        phoneInput.placeholder = placeholder;\n      }\n    }\n\n    function updateCountryCodeInstruction(countryCode, fieldName) {\n      updatePlaceholder(countryCode, fieldName);\n\n    }\n\n    function getDefaultHelpText(countryCode) {\n      var mockPlaceholders = [\n        {\n          countryCode: 'US',\n          placeholder: '+1 000 000 0000',\n          helpText: 'Include the US country code +1 before the phone number',\n        },\n        {\n          countryCode: 'GB',\n          placeholder: '+44 0000 000000',\n          helpText: 'Include the GB country code +44 before the phone number',\n        },\n        {\n          countryCode: 'CA',\n          placeholder: '+1 000 000 0000',\n          helpText: 'Include the CA country code +1 before the phone number',\n        },\n        {\n          countryCode: 'AU',\n          placeholder: '+61 000 000 000',\n          helpText: 'Include the AU country code +61 before the phone number',\n        },\n        {\n          countryCode: 'DE',\n          placeholder: '+49 000 0000000',\n          helpText: 'Fügen Sie vor der Telefonnummer die DE-Ländervorwahl +49 ein',\n        },\n        {\n          countryCode: 'FR',\n          placeholder: '+33 0 00 00 00 00',\n          helpText: 'Incluez le code pays FR +33 avant le numéro de téléphone',\n        },\n        {\n          countryCode: 'ES',\n          placeholder: '+34 000 000 000',\n          helpText: 'Incluya el código de país ES +34 antes del número de teléfono',\n        },\n        {\n          countryCode: 'NL',\n          placeholder: '+31 0 00000000',\n          helpText: 'Voeg de NL-landcode +31 toe vóór het telefoonnummer',\n        },\n        {\n          countryCode: 'BE',\n          placeholder: '+32 000 00 00 00',\n          helpText: 'Incluez le code pays BE +32 avant le numéro de téléphone',\n        },\n        {\n          countryCode: 'CH',\n          placeholder: '+41 00 000 00 00',\n          helpText: 'Fügen Sie vor der Telefonnummer die CH-Ländervorwahl +41 ein',\n        },\n        {\n          countryCode: 'AT',\n          placeholder: '+43 000 000 0000',\n          helpText: 'Fügen Sie vor der Telefonnummer die AT-Ländervorwahl +43 ein',\n        },\n        {\n          countryCode: 'IE',\n          placeholder: '+353 00 000 0000',\n          helpText: 'Include the IE country code +353 before the phone number',\n        },\n        {\n          countryCode: 'IT',\n          placeholder: '+39 000 000 0000',\n          helpText: 'Includere il prefisso internazionale IT +39 prima del numero di telefono',\n        },\n      ];\n\n      if (!countryCode || typeof countryCode !== 'string') {\n        return mockPlaceholders[0].helpText;\n      }\n\n      const selectedHelpText = mockPlaceholders.find(function(item) {\n          return item && item.countryCode === countryCode;\n        });\n\n        return selectedHelpText ? selectedHelpText.helpText : mockPlaceholders[0].helpText;\n    }\n\n    function setDefaultHelpText(countryCode) {\n      const helpTextSpan = document.querySelector('#help-text');\n      if (!helpTextSpan) {\n        return;\n      }\n\n    }\n\n    function updateHelpTextCountryCode(countryCode, fieldName) {\n      if (!countryCode || !fieldName) {\n        return;\n      }\n\n      setDefaultHelpText(countryCode);\n    }\n\n    function initializeSmsPhoneDropdown(fieldName) {\n      if (!fieldName || typeof fieldName !== 'string') {\n        return;\n      }\n\n      const dropdown = document.querySelector('#country-select-' + fieldName);\n      const displayFlag = document.querySelector('#flag-display-' + fieldName);\n\n      if (!dropdown || !displayFlag) {\n        return;\n      }\n\n      const smsPhoneData = window.MC?.smsPhoneData;\n      if (smsPhoneData && smsPhoneData.programs && Array.isArray(smsPhoneData.programs)) {\n        dropdown.innerHTML = generateDropdownOptions(smsPhoneData.programs);\n      }\n\n      const defaultProgram = getDefaultCountryProgram(smsPhoneData?.defaultCountryCode, smsPhoneData?.programs);\n      if (defaultProgram && defaultProgram.countryCode) {\n        dropdown.value = defaultProgram.countryCode;\n\n        const flagSpan = displayFlag?.querySelector('#flag-emoji-' + fieldName);\n        if (flagSpan) {\n          flagSpan.textContent = getCountryUnicodeFlag(defaultProgram.countryCode);\n          flagSpan.setAttribute('aria-label', sanitizeHtml(defaultProgram.countryCode) + ' flag');\n        }\n\n        updateSmsLegalText(defaultProgram.countryCode, fieldName);\n        updatePlaceholder(defaultProgram.countryCode, fieldName);\n        updateCountryCodeInstruction(defaultProgram.countryCode, fieldName);\n      }\n\n      var smsNotRequiredRemoveCountryCodeEnabled = true;\n      var smsField = Object.values({\"FNAME\":{\"name\":\"FNAME\",\"label\":\"First Name\",\"helper_text\":\"\",\"type\":\"text\",\"required\":false,\"audience_field_name\":\"First Name\",\"merge_id\":1,\"help_text_enabled\":false,\"enabled\":true,\"order\":\"0\",\"field_type\":\"merge\"},\"LNAME\":{\"name\":\"LNAME\",\"label\":\"Last Name\",\"helper_text\":\"\",\"type\":\"text\",\"required\":false,\"audience_field_name\":\"Last Name\",\"merge_id\":2,\"help_text_enabled\":false,\"enabled\":true,\"order\":\"1\",\"field_type\":\"merge\"},\"EMAIL\":{\"name\":\"EMAIL\",\"label\":\"Email Address\",\"helper_text\":\"\",\"type\":\"email\",\"required\":true,\"audience_field_name\":\"Email Address\",\"merge_id\":0,\"help_text_enabled\":false,\"enabled\":true,\"order\":\"2\",\"field_type\":\"merge\"},\"ROLE\":{\"name\":\"ROLE\",\"label\":\"Role\",\"helper_text\":\"\",\"type\":\"dropdown\",\"required\":false,\"audience_field_name\":\"Role\",\"choices\":[{\"value\":\"GP\",\"label\":\"GP\"},{\"value\":\"Nurse\",\"label\":\"Nurse\"},{\"value\":\"Dietitian\",\"label\":\"Dietitian\"},{\"value\":\"Nutritionist\",\"label\":\"Nutritionist\"},{\"value\":\"Health Coach\",\"label\":\"Health Coach\"},{\"value\":\"Practice Manager\",\"label\":\"Practice Manager\"},{\"value\":\"Specialist\",\"label\":\"Specialist\"},{\"value\":\"Other\",\"label\":\"Other\"}],\"merge_id\":7,\"help_text_enabled\":false,\"enabled\":true,\"order\":\"3\",\"field_type\":\"merge\"},\"ORG\":{\"name\":\"ORG\",\"label\":\"Organiation\",\"helper_text\":\"\",\"type\":\"text\",\"required\":false,\"audience_field_name\":\"Organisation\",\"merge_id\":8,\"help_text_enabled\":false,\"enabled\":true,\"order\":\"4\",\"field_type\":\"merge\"},\"REGION\":{\"name\":\"REGION\",\"label\":\"Region\",\"helper_text\":\"\",\"type\":\"dropdown\",\"required\":false,\"audience_field_name\":\"Region\",\"choices\":[{\"value\":\"Northland\",\"label\":\"Northland\"},{\"value\":\"Auckland\",\"label\":\"Auckland\"},{\"value\":\"Waikato\",\"label\":\"Waikato\"},{\"value\":\"Bay of Plenty\",\"label\":\"Bay of Plenty\"},{\"value\":\"Gisborne\",\"label\":\"Gisborne\"},{\"value\":\"Hawke's Bay\",\"label\":\"Hawke's Bay\"},{\"value\":\"Taranaki\",\"label\":\"Taranaki\"},{\"value\":\"Manawatū-Whanganui\",\"label\":\"Manawatū-Whanganui\"},{\"value\":\"Wellington\",\"label\":\"Wellington\"},{\"value\":\"Tasman\",\"label\":\"Tasman\"},{\"value\":\"Nelson\",\"label\":\"Nelson\"},{\"value\":\"Marlborough\",\"label\":\"Marlborough\"},{\"value\":\"West Coast\",\"label\":\"West Coast\"},{\"value\":\"Canterbury\",\"label\":\"Canterbury\"},{\"value\":\"Otago\",\"label\":\"Otago\"},{\"value\":\"Southland\",\"label\":\"Southland\"}],\"merge_id\":10,\"help_text_enabled\":false,\"enabled\":true,\"order\":\"5\",\"field_type\":\"merge\"},\"SPECIALTY\":{\"name\":\"SPECIALTY\",\"label\":\"Specialty\",\"helper_text\":\"\",\"type\":\"dropdown\",\"required\":false,\"audience_field_name\":\"Specialty\",\"choices\":[{\"value\":\"Diabetes\",\"label\":\"Diabetes\"},{\"value\":\"Weight Management/Bariatrics\",\"label\":\"Weight Management/Bariatrics\"},{\"value\":\"General Practice/Primary Care\",\"label\":\"General Practice/Primary Care\"},{\"value\":\"Other\",\"label\":\"Other\"}],\"merge_id\":9,\"help_text_enabled\":false,\"enabled\":true,\"order\":\"6\",\"field_type\":\"merge\"},\"ADDRESS\":{\"name\":\"ADDRESS\",\"label\":\"Address\",\"helper_text\":\"\",\"type\":\"address\",\"required\":false,\"audience_field_name\":\"Address\",\"enabled\":false,\"order\":null,\"field_type\":\"merge\",\"merge_id\":3,\"countries\":{\"2\":\"Albania\",\"3\":\"Algeria\",\"4\":\"Andorra\",\"5\":\"Angola\",\"6\":\"Argentina\",\"7\":\"Armenia\",\"8\":\"Australia\",\"9\":\"Austria\",\"10\":\"Azerbaijan\",\"11\":\"Bahamas\",\"12\":\"Bahrain\",\"13\":\"Bangladesh\",\"14\":\"Barbados\",\"15\":\"Belarus\",\"16\":\"Belgium\",\"17\":\"Belize\",\"18\":\"Benin\",\"19\":\"Bermuda\",\"20\":\"Bhutan\",\"21\":\"Bolivia\",\"22\":\"Bosnia and Herzegovina\",\"23\":\"Botswana\",\"24\":\"Brazil\",\"25\":\"Bulgaria\",\"26\":\"Burkina Faso\",\"27\":\"Burundi\",\"28\":\"Cambodia\",\"29\":\"Cameroon\",\"30\":\"Canada\",\"31\":\"Cape Verde\",\"32\":\"Cayman Islands\",\"33\":\"Central African Republic\",\"34\":\"Chad\",\"35\":\"Chile\",\"36\":\"China\",\"37\":\"Colombia\",\"38\":\"Congo\",\"40\":\"Croatia\",\"41\":\"Cyprus\",\"42\":\"Czech Republic\",\"43\":\"Denmark\",\"44\":\"Djibouti\",\"45\":\"Ecuador\",\"46\":\"Egypt\",\"47\":\"El Salvador\",\"48\":\"Equatorial Guinea\",\"49\":\"Eritrea\",\"50\":\"Estonia\",\"51\":\"Ethiopia\",\"52\":\"Fiji\",\"53\":\"Finland\",\"54\":\"France\",\"56\":\"Gabon\",\"57\":\"Gambia\",\"58\":\"Georgia\",\"59\":\"Germany\",\"60\":\"Ghana\",\"61\":\"Greece\",\"62\":\"Guam\",\"63\":\"Guinea\",\"64\":\"Guinea-Bissau\",\"65\":\"Guyana\",\"66\":\"Honduras\",\"67\":\"Hong Kong\",\"68\":\"Hungary\",\"69\":\"Iceland\",\"70\":\"India\",\"71\":\"Indonesia\",\"74\":\"Ireland\",\"75\":\"Israel\",\"76\":\"Italy\",\"78\":\"Japan\",\"79\":\"Jordan\",\"80\":\"Kazakhstan\",\"81\":\"Kenya\",\"82\":\"Kuwait\",\"83\":\"Kyrgyzstan\",\"84\":\"Lao People's Democratic Republic\",\"85\":\"Latvia\",\"86\":\"Lebanon\",\"87\":\"Lesotho\",\"88\":\"Liberia\",\"90\":\"Liechtenstein\",\"91\":\"Lithuania\",\"92\":\"Luxembourg\",\"93\":\"Macedonia\",\"94\":\"Madagascar\",\"95\":\"Malawi\",\"96\":\"Malaysia\",\"97\":\"Maldives\",\"98\":\"Mali\",\"99\":\"Malta\",\"100\":\"Mauritania\",\"101\":\"Mexico\",\"102\":\"Moldova\",\"103\":\"Monaco\",\"104\":\"Mongolia\",\"105\":\"Morocco\",\"106\":\"Mozambique\",\"107\":\"Namibia\",\"108\":\"Nepal\",\"109\":\"Netherlands\",\"110\":\"Netherlands Antilles\",\"111\":\"New Zealand\",\"112\":\"Nicaragua\",\"113\":\"Niger\",\"114\":\"Nigeria\",\"116\":\"Norway\",\"117\":\"Oman\",\"118\":\"Pakistan\",\"119\":\"Panama\",\"120\":\"Paraguay\",\"121\":\"Peru\",\"122\":\"Philippines\",\"123\":\"Poland\",\"124\":\"Portugal\",\"126\":\"Qatar\",\"127\":\"Reunion\",\"128\":\"Romania\",\"129\":\"Russia\",\"130\":\"Rwanda\",\"132\":\"Samoa (Independent)\",\"133\":\"Saudi Arabia\",\"134\":\"Senegal\",\"135\":\"Seychelles\",\"136\":\"Sierra Leone\",\"137\":\"Singapore\",\"138\":\"Slovakia\",\"139\":\"Slovenia\",\"140\":\"Somalia\",\"141\":\"South Africa\",\"142\":\"South Korea\",\"143\":\"Spain\",\"144\":\"Sri Lanka\",\"146\":\"Suriname\",\"147\":\"Swaziland\",\"148\":\"Sweden\",\"149\":\"Switzerland\",\"152\":\"Taiwan\",\"153\":\"Tanzania\",\"154\":\"Thailand\",\"155\":\"Togo\",\"156\":\"Tunisia\",\"157\":\"Turkiye\",\"158\":\"Turkmenistan\",\"159\":\"Uganda\",\"161\":\"Ukraine\",\"162\":\"United Arab Emirates\",\"163\":\"Uruguay\",\"164\":\"USA\",\"165\":\"Uzbekistan\",\"166\":\"Vatican City State (Holy See)\",\"167\":\"Venezuela\",\"168\":\"Vietnam\",\"169\":\"Virgin Islands (British)\",\"170\":\"Yemen\",\"173\":\"Zambia\",\"174\":\"Zimbabwe\",\"175\":\"Antigua And Barbuda\",\"176\":\"Anguilla\",\"178\":\"American Samoa\",\"179\":\"Aruba\",\"180\":\"Brunei Darussalam\",\"181\":\"Bouvet Island\",\"183\":\"Cook Islands\",\"185\":\"Christmas Island\",\"187\":\"Dominican Republic\",\"188\":\"Western Sahara\",\"189\":\"Falkland Islands\",\"191\":\"Faroe Islands\",\"192\":\"Grenada\",\"193\":\"French Guiana\",\"194\":\"Gibraltar\",\"195\":\"Greenland\",\"196\":\"Guadeloupe\",\"198\":\"Guatemala\",\"200\":\"Haiti\",\"202\":\"Jamaica\",\"203\":\"Kiribati\",\"204\":\"Comoros\",\"205\":\"Saint Kitts and Nevis\",\"206\":\"Saint Lucia\",\"207\":\"Marshall Islands\",\"208\":\"Macau\",\"210\":\"Martinique\",\"212\":\"Mauritius\",\"213\":\"New Caledonia\",\"214\":\"Norfolk Island\",\"215\":\"Nauru\",\"217\":\"Niue\",\"219\":\"Papua New Guinea\",\"221\":\"Pitcairn\",\"222\":\"Palau\",\"223\":\"Solomon Islands\",\"225\":\"Svalbard and Jan Mayen Islands\",\"227\":\"San Marino\",\"232\":\"Tonga\",\"233\":\"Timor-Leste\",\"234\":\"Trinidad and Tobago\",\"235\":\"Tuvalu\",\"237\":\"Saint Vincent and the Grenadines\",\"238\":\"Virgin Islands (U.S.)\",\"239\":\"Vanuatu\",\"241\":\"Mayotte\",\"242\":\"Myanmar\",\"255\":\"Sao Tome and Principe\",\"257\":\"South Georgia and the South Sandwich Islands\",\"260\":\"Tajikistan\",\"262\":\"United Kingdom\",\"268\":\"Costa Rica\",\"270\":\"Guernsey\",\"272\":\"North Korea\",\"274\":\"Afghanistan\",\"275\":\"Cote D'Ivoire\",\"276\":\"Cuba\",\"277\":\"French Polynesia\",\"278\":\"Iran\",\"279\":\"Iraq\",\"281\":\"Libya\",\"282\":\"Palestine\",\"285\":\"Syria\",\"286\":\"Aaland Islands\",\"287\":\"Turks & Caicos Islands\",\"288\":\"Jersey  (Channel Islands)\",\"289\":\"Dominica\",\"290\":\"Montenegro\",\"293\":\"Sudan\",\"294\":\"Montserrat\",\"298\":\"Curacao\",\"302\":\"Sint Maarten\",\"311\":\"South Sudan\",\"315\":\"Republic of Kosovo\",\"318\":\"Congo, Democratic Republic of the\",\"323\":\"Isle of Man\",\"324\":\"Saint Martin\",\"325\":\"Bonaire, Saint Eustatius and Saba\",\"326\":\"Serbia\"},\"defaultcountry\":164},\"PHONE\":{\"name\":\"PHONE\",\"label\":\"Phone Number\",\"helper_text\":\"\",\"type\":\"phone\",\"required\":false,\"audience_field_name\":\"Phone Number\",\"phoneformat\":\"\",\"enabled\":false,\"order\":null,\"field_type\":\"merge\",\"merge_id\":4},\"BIRTHDAY\":{\"name\":\"BIRTHDAY\",\"label\":\"Birthday\",\"helper_text\":\"\",\"type\":\"birthday\",\"required\":false,\"audience_field_name\":\"Birthday\",\"dateformat\":\"MM/DD\",\"enabled\":false,\"order\":null,\"field_type\":\"merge\",\"merge_id\":5},\"COMPANY\":{\"name\":\"COMPANY\",\"label\":\"Company\",\"helper_text\":\"\",\"type\":\"text\",\"required\":false,\"audience_field_name\":\"Company\",\"enabled\":false,\"order\":null,\"field_type\":\"merge\",\"merge_id\":6}}).find(function(f) { return f.name === fieldName && f.type === 'smsphone'; });\n      var isRequired = smsField ? smsField.required : false;\n      var shouldAppendCountryCode = smsNotRequiredRemoveCountryCodeEnabled ? isRequired : true;\n\n      var phoneInput = document.querySelector('#mce-' + fieldName);\n      if (phoneInput && defaultProgram.countryCallingCode && shouldAppendCountryCode) {\n        phoneInput.value = defaultProgram.countryCallingCode;\n      }\n\n      displayFlag?.addEventListener('click', function(e) {\n        dropdown.focus();\n      });\n\n      dropdown?.addEventListener('change', function() {\n        const selectedCountry = this.value;\n\n        if (!selectedCountry || typeof selectedCountry !== 'string') {\n          return;\n        }\n\n        const flagSpan = displayFlag?.querySelector('#flag-emoji-' + fieldName);\n        if (flagSpan) {\n          flagSpan.textContent = getCountryUnicodeFlag(selectedCountry);\n          flagSpan.setAttribute('aria-label', sanitizeHtml(selectedCountry) + ' flag');\n        }\n\n        const selectedProgram = window.MC?.smsPhoneData?.programs.find(function(program) {\n          return program && program.countryCode === selectedCountry;\n        });\n\n        var smsNotRequiredRemoveCountryCodeEnabled = true;\n        var smsField = Object.values({\"FNAME\":{\"name\":\"FNAME\",\"label\":\"First Name\",\"helper_text\":\"\",\"type\":\"text\",\"required\":false,\"audience_field_name\":\"First Name\",\"merge_id\":1,\"help_text_enabled\":false,\"enabled\":true,\"order\":\"0\",\"field_type\":\"merge\"},\"LNAME\":{\"name\":\"LNAME\",\"label\":\"Last Name\",\"helper_text\":\"\",\"type\":\"text\",\"required\":false,\"audience_field_name\":\"Last Name\",\"merge_id\":2,\"help_text_enabled\":false,\"enabled\":true,\"order\":\"1\",\"field_type\":\"merge\"},\"EMAIL\":{\"name\":\"EMAIL\",\"label\":\"Email Address\",\"helper_text\":\"\",\"type\":\"email\",\"required\":true,\"audience_field_name\":\"Email Address\",\"merge_id\":0,\"help_text_enabled\":false,\"enabled\":true,\"order\":\"2\",\"field_type\":\"merge\"},\"ROLE\":{\"name\":\"ROLE\",\"label\":\"Role\",\"helper_text\":\"\",\"type\":\"dropdown\",\"required\":false,\"audience_field_name\":\"Role\",\"choices\":[{\"value\":\"GP\",\"label\":\"GP\"},{\"value\":\"Nurse\",\"label\":\"Nurse\"},{\"value\":\"Dietitian\",\"label\":\"Dietitian\"},{\"value\":\"Nutritionist\",\"label\":\"Nutritionist\"},{\"value\":\"Health Coach\",\"label\":\"Health Coach\"},{\"value\":\"Practice Manager\",\"label\":\"Practice Manager\"},{\"value\":\"Specialist\",\"label\":\"Specialist\"},{\"value\":\"Other\",\"label\":\"Other\"}],\"merge_id\":7,\"help_text_enabled\":false,\"enabled\":true,\"order\":\"3\",\"field_type\":\"merge\"},\"ORG\":{\"name\":\"ORG\",\"label\":\"Organiation\",\"helper_text\":\"\",\"type\":\"text\",\"required\":false,\"audience_field_name\":\"Organisation\",\"merge_id\":8,\"help_text_enabled\":false,\"enabled\":true,\"order\":\"4\",\"field_type\":\"merge\"},\"REGION\":{\"name\":\"REGION\",\"label\":\"Region\",\"helper_text\":\"\",\"type\":\"dropdown\",\"required\":false,\"audience_field_name\":\"Region\",\"choices\":[{\"value\":\"Northland\",\"label\":\"Northland\"},{\"value\":\"Auckland\",\"label\":\"Auckland\"},{\"value\":\"Waikato\",\"label\":\"Waikato\"},{\"value\":\"Bay of Plenty\",\"label\":\"Bay of Plenty\"},{\"value\":\"Gisborne\",\"label\":\"Gisborne\"},{\"value\":\"Hawke's Bay\",\"label\":\"Hawke's Bay\"},{\"value\":\"Taranaki\",\"label\":\"Taranaki\"},{\"value\":\"Manawatū-Whanganui\",\"label\":\"Manawatū-Whanganui\"},{\"value\":\"Wellington\",\"label\":\"Wellington\"},{\"value\":\"Tasman\",\"label\":\"Tasman\"},{\"value\":\"Nelson\",\"label\":\"Nelson\"},{\"value\":\"Marlborough\",\"label\":\"Marlborough\"},{\"value\":\"West Coast\",\"label\":\"West Coast\"},{\"value\":\"Canterbury\",\"label\":\"Canterbury\"},{\"value\":\"Otago\",\"label\":\"Otago\"},{\"value\":\"Southland\",\"label\":\"Southland\"}],\"merge_id\":10,\"help_text_enabled\":false,\"enabled\":true,\"order\":\"5\",\"field_type\":\"merge\"},\"SPECIALTY\":{\"name\":\"SPECIALTY\",\"label\":\"Specialty\",\"helper_text\":\"\",\"type\":\"dropdown\",\"required\":false,\"audience_field_name\":\"Specialty\",\"choices\":[{\"value\":\"Diabetes\",\"label\":\"Diabetes\"},{\"value\":\"Weight Management/Bariatrics\",\"label\":\"Weight Management/Bariatrics\"},{\"value\":\"General Practice/Primary Care\",\"label\":\"General Practice/Primary Care\"},{\"value\":\"Other\",\"label\":\"Other\"}],\"merge_id\":9,\"help_text_enabled\":false,\"enabled\":true,\"order\":\"6\",\"field_type\":\"merge\"},\"ADDRESS\":{\"name\":\"ADDRESS\",\"label\":\"Address\",\"helper_text\":\"\",\"type\":\"address\",\"required\":false,\"audience_field_name\":\"Address\",\"enabled\":false,\"order\":null,\"field_type\":\"merge\",\"merge_id\":3,\"countries\":{\"2\":\"Albania\",\"3\":\"Algeria\",\"4\":\"Andorra\",\"5\":\"Angola\",\"6\":\"Argentina\",\"7\":\"Armenia\",\"8\":\"Australia\",\"9\":\"Austria\",\"10\":\"Azerbaijan\",\"11\":\"Bahamas\",\"12\":\"Bahrain\",\"13\":\"Bangladesh\",\"14\":\"Barbados\",\"15\":\"Belarus\",\"16\":\"Belgium\",\"17\":\"Belize\",\"18\":\"Benin\",\"19\":\"Bermuda\",\"20\":\"Bhutan\",\"21\":\"Bolivia\",\"22\":\"Bosnia and Herzegovina\",\"23\":\"Botswana\",\"24\":\"Brazil\",\"25\":\"Bulgaria\",\"26\":\"Burkina Faso\",\"27\":\"Burundi\",\"28\":\"Cambodia\",\"29\":\"Cameroon\",\"30\":\"Canada\",\"31\":\"Cape Verde\",\"32\":\"Cayman Islands\",\"33\":\"Central African Republic\",\"34\":\"Chad\",\"35\":\"Chile\",\"36\":\"China\",\"37\":\"Colombia\",\"38\":\"Congo\",\"40\":\"Croatia\",\"41\":\"Cyprus\",\"42\":\"Czech Republic\",\"43\":\"Denmark\",\"44\":\"Djibouti\",\"45\":\"Ecuador\",\"46\":\"Egypt\",\"47\":\"El Salvador\",\"48\":\"Equatorial Guinea\",\"49\":\"Eritrea\",\"50\":\"Estonia\",\"51\":\"Ethiopia\",\"52\":\"Fiji\",\"53\":\"Finland\",\"54\":\"France\",\"56\":\"Gabon\",\"57\":\"Gambia\",\"58\":\"Georgia\",\"59\":\"Germany\",\"60\":\"Ghana\",\"61\":\"Greece\",\"62\":\"Guam\",\"63\":\"Guinea\",\"64\":\"Guinea-Bissau\",\"65\":\"Guyana\",\"66\":\"Honduras\",\"67\":\"Hong Kong\",\"68\":\"Hungary\",\"69\":\"Iceland\",\"70\":\"India\",\"71\":\"Indonesia\",\"74\":\"Ireland\",\"75\":\"Israel\",\"76\":\"Italy\",\"78\":\"Japan\",\"79\":\"Jordan\",\"80\":\"Kazakhstan\",\"81\":\"Kenya\",\"82\":\"Kuwait\",\"83\":\"Kyrgyzstan\",\"84\":\"Lao People's Democratic Republic\",\"85\":\"Latvia\",\"86\":\"Lebanon\",\"87\":\"Lesotho\",\"88\":\"Liberia\",\"90\":\"Liechtenstein\",\"91\":\"Lithuania\",\"92\":\"Luxembourg\",\"93\":\"Macedonia\",\"94\":\"Madagascar\",\"95\":\"Malawi\",\"96\":\"Malaysia\",\"97\":\"Maldives\",\"98\":\"Mali\",\"99\":\"Malta\",\"100\":\"Mauritania\",\"101\":\"Mexico\",\"102\":\"Moldova\",\"103\":\"Monaco\",\"104\":\"Mongolia\",\"105\":\"Morocco\",\"106\":\"Mozambique\",\"107\":\"Namibia\",\"108\":\"Nepal\",\"109\":\"Netherlands\",\"110\":\"Netherlands Antilles\",\"111\":\"New Zealand\",\"112\":\"Nicaragua\",\"113\":\"Niger\",\"114\":\"Nigeria\",\"116\":\"Norway\",\"117\":\"Oman\",\"118\":\"Pakistan\",\"119\":\"Panama\",\"120\":\"Paraguay\",\"121\":\"Peru\",\"122\":\"Philippines\",\"123\":\"Poland\",\"124\":\"Portugal\",\"126\":\"Qatar\",\"127\":\"Reunion\",\"128\":\"Romania\",\"129\":\"Russia\",\"130\":\"Rwanda\",\"132\":\"Samoa (Independent)\",\"133\":\"Saudi Arabia\",\"134\":\"Senegal\",\"135\":\"Seychelles\",\"136\":\"Sierra Leone\",\"137\":\"Singapore\",\"138\":\"Slovakia\",\"139\":\"Slovenia\",\"140\":\"Somalia\",\"141\":\"South Africa\",\"142\":\"South Korea\",\"143\":\"Spain\",\"144\":\"Sri Lanka\",\"146\":\"Suriname\",\"147\":\"Swaziland\",\"148\":\"Sweden\",\"149\":\"Switzerland\",\"152\":\"Taiwan\",\"153\":\"Tanzania\",\"154\":\"Thailand\",\"155\":\"Togo\",\"156\":\"Tunisia\",\"157\":\"Turkiye\",\"158\":\"Turkmenistan\",\"159\":\"Uganda\",\"161\":\"Ukraine\",\"162\":\"United Arab Emirates\",\"163\":\"Uruguay\",\"164\":\"USA\",\"165\":\"Uzbekistan\",\"166\":\"Vatican City State (Holy See)\",\"167\":\"Venezuela\",\"168\":\"Vietnam\",\"169\":\"Virgin Islands (British)\",\"170\":\"Yemen\",\"173\":\"Zambia\",\"174\":\"Zimbabwe\",\"175\":\"Antigua And Barbuda\",\"176\":\"Anguilla\",\"178\":\"American Samoa\",\"179\":\"Aruba\",\"180\":\"Brunei Darussalam\",\"181\":\"Bouvet Island\",\"183\":\"Cook Islands\",\"185\":\"Christmas Island\",\"187\":\"Dominican Republic\",\"188\":\"Western Sahara\",\"189\":\"Falkland Islands\",\"191\":\"Faroe Islands\",\"192\":\"Grenada\",\"193\":\"French Guiana\",\"194\":\"Gibraltar\",\"195\":\"Greenland\",\"196\":\"Guadeloupe\",\"198\":\"Guatemala\",\"200\":\"Haiti\",\"202\":\"Jamaica\",\"203\":\"Kiribati\",\"204\":\"Comoros\",\"205\":\"Saint Kitts and Nevis\",\"206\":\"Saint Lucia\",\"207\":\"Marshall Islands\",\"208\":\"Macau\",\"210\":\"Martinique\",\"212\":\"Mauritius\",\"213\":\"New Caledonia\",\"214\":\"Norfolk Island\",\"215\":\"Nauru\",\"217\":\"Niue\",\"219\":\"Papua New Guinea\",\"221\":\"Pitcairn\",\"222\":\"Palau\",\"223\":\"Solomon Islands\",\"225\":\"Svalbard and Jan Mayen Islands\",\"227\":\"San Marino\",\"232\":\"Tonga\",\"233\":\"Timor-Leste\",\"234\":\"Trinidad and Tobago\",\"235\":\"Tuvalu\",\"237\":\"Saint Vincent and the Grenadines\",\"238\":\"Virgin Islands (U.S.)\",\"239\":\"Vanuatu\",\"241\":\"Mayotte\",\"242\":\"Myanmar\",\"255\":\"Sao Tome and Principe\",\"257\":\"South Georgia and the South Sandwich Islands\",\"260\":\"Tajikistan\",\"262\":\"United Kingdom\",\"268\":\"Costa Rica\",\"270\":\"Guernsey\",\"272\":\"North Korea\",\"274\":\"Afghanistan\",\"275\":\"Cote D'Ivoire\",\"276\":\"Cuba\",\"277\":\"French Polynesia\",\"278\":\"Iran\",\"279\":\"Iraq\",\"281\":\"Libya\",\"282\":\"Palestine\",\"285\":\"Syria\",\"286\":\"Aaland Islands\",\"287\":\"Turks & Caicos Islands\",\"288\":\"Jersey  (Channel Islands)\",\"289\":\"Dominica\",\"290\":\"Montenegro\",\"293\":\"Sudan\",\"294\":\"Montserrat\",\"298\":\"Curacao\",\"302\":\"Sint Maarten\",\"311\":\"South Sudan\",\"315\":\"Republic of Kosovo\",\"318\":\"Congo, Democratic Republic of the\",\"323\":\"Isle of Man\",\"324\":\"Saint Martin\",\"325\":\"Bonaire, Saint Eustatius and Saba\",\"326\":\"Serbia\"},\"defaultcountry\":164},\"PHONE\":{\"name\":\"PHONE\",\"label\":\"Phone Number\",\"helper_text\":\"\",\"type\":\"phone\",\"required\":false,\"audience_field_name\":\"Phone Number\",\"phoneformat\":\"\",\"enabled\":false,\"order\":null,\"field_type\":\"merge\",\"merge_id\":4},\"BIRTHDAY\":{\"name\":\"BIRTHDAY\",\"label\":\"Birthday\",\"helper_text\":\"\",\"type\":\"birthday\",\"required\":false,\"audience_field_name\":\"Birthday\",\"dateformat\":\"MM/DD\",\"enabled\":false,\"order\":null,\"field_type\":\"merge\",\"merge_id\":5},\"COMPANY\":{\"name\":\"COMPANY\",\"label\":\"Company\",\"helper_text\":\"\",\"type\":\"text\",\"required\":false,\"audience_field_name\":\"Company\",\"enabled\":false,\"order\":null,\"field_type\":\"merge\",\"merge_id\":6}}).find(function(f) { return f.name === fieldName && f.type === 'smsphone'; });\n        var isRequired = smsField ? smsField.required : false;\n        var shouldAppendCountryCode = smsNotRequiredRemoveCountryCodeEnabled ? isRequired : true;\n\n        var phoneInput = document.querySelector('#mce-' + fieldName);\n        if (phoneInput && selectedProgram.countryCallingCode && shouldAppendCountryCode) {\n          phoneInput.value = selectedProgram.countryCallingCode;\n        }\n\n        updateSmsLegalText(selectedCountry, fieldName);\n        updatePlaceholder(selectedCountry, fieldName);\n        updateCountryCodeInstruction(selectedCountry, fieldName);\n      });\n    }\n\n    document.addEventListener('DOMContentLoaded', function() {\n      const smsPhoneFields = document.querySelectorAll('[id^=\"country-select-\"]');\n\n      smsPhoneFields.forEach(function(dropdown) {\n        const fieldName = dropdown?.id.replace('country-select-', '');\n        initializeSmsPhoneDropdown(fieldName);\n      });\n    });\n    </script></div>\n"}},{"__typename":"ContentfulRenderRawHtml","id":"a5549610-8f17-5869-9f9e-76c0ed098028","title":"Privacy Policy","html":{"html":"<div id=\"mc_disclaimer\">By continuing I agree to the My Food Bag <a href=\"https://www.myfoodbag.co.nz/privacy\">Privacy Policy</a></div>"}}],"backgroundImage":null,"leftImage":null,"rightImage":null,"variant":"default"},{"__typename":"ContentfulPageSection","id":"c8d4749a-d1d7-5e6f-a918-803a49e4d926","title":"Learn about our other health solutions","childContentfulPageSectionSubtitleTextNode":null,"backgroundColor":null,"wrapContent":true,"fullWidth":null,"childContentfulPageSectionDescriptionTextNode":null,"actionButton":null,"content":[{"__typename":"ContentfulHeroCard","id":"c096b432-5383-5e96-ade5-76fe3c0ed33f","title":"Fresh Start","description":null,"image":{"id":"8a2a92b0-5d22-51aa-979c-617da66f2e4b","description":"","file":{"url":"//images.ctfassets.net/h5bq1gt24416/38UmBbqG1EHyJhYwdfPgVn/84af0182bafc826da41c3abd5bd493df/High_Blood_pressure_icons_Try_Vegetarian--.svg"}},"color":null,"cardType":"Small","button":{"label":"Fresh Start","link":{"relativePath":"/low-cal","absoluteUrl":null},"scrollTarget":null,"buttonType":null},"alignment":null},{"__typename":"ContentfulHeroCard","id":"5cb106b4-9e1a-5bfe-90df-5fa0ce95c0ca","title":null,"description":null,"image":{"id":"3500198b-15f0-553a-bf7c-d8661f363284","description":"","file":{"url":"//images.ctfassets.net/h5bq1gt24416/v1A7B8O4DKrf5ZzNJg0jd/57aadfdfcd4a33d601a419976c7de47d/health_hub_icons_weight_management.svg"}},"color":null,"cardType":"Large","button":{"label":"GLP-1 Support Plan","link":{"relativePath":"/glp-1-support-recipes/HPN","absoluteUrl":null},"scrollTarget":null,"buttonType":"Primary"},"alignment":null},{"__typename":"ContentfulHeroCard","id":"a72c4f71-5c62-5c25-bdca-b054977b48dd","title":"Diabetes","description":null,"image":{"id":"88e1bd26-974e-5602-8a20-b768d9f7aad2","description":"","file":{"url":"//images.ctfassets.net/h5bq1gt24416/1ajcvWyfCtIyjnLIKokVkP/6a0aa513ca0eb08f9c775fbc46318007/low_carb_icon_low_gi.png"}},"color":null,"cardType":"Large","button":{"label":"Diabetes Plan","link":{"relativePath":"/meal-kits/diabetes-plan/HPN","absoluteUrl":null},"scrollTarget":null,"buttonType":"Primary"},"alignment":null}],"backgroundImage":null,"leftImage":null,"rightImage":null,"variant":"default"}],"pageSettings":{"preselectedPeople":2,"hideDiscountBanner":false,"hideFooter":false,"hideHeader":false},"metadata":{"title":"My Food Bag Diabetes Friendly Recipes","description":{"description":"Whether you’re managing diabetes, working to prevent type 2 diabetes, or simply looking to eat better, you can now learn how to cook Diabetes-Friendly meals at home. All our recipes are chef developed, supported by Diabetes New Zealand and approved by our in-house nutrition team. "},"sharingLinkImage":{"id":"e064c499-78d9-565d-bbf1-34dc45eb4dfe","__typename":"ContentfulResponsiveImageSet","alternateText":"Diabetes Friendly Responsive Image Set","small":{"id":"09ee5138-f972-53d0-8c8e-8dbb06789cde","description":"","file":{"url":"//images.ctfassets.net/h5bq1gt24416/2oRexcCqWyn6UL8szpqzMA/e07d310d0bf8cf7ad6beaab20a694614/Diabetes_Plan_jumbo_S.jpg"}},"medium":{"id":"bbc16a0b-789d-5eaa-ac6a-e9e2d26baccf","description":"","file":{"url":"//images.ctfassets.net/h5bq1gt24416/016iK9GGss77TdUQ0SjEyM/a990179d1c9892e7c0a98b7fd96df101/Diabetes_Plan_jumbo_M.jpg"}},"large":{"id":"8825b7d3-3f2b-5d92-9661-bae7438e8a0d","description":"","file":{"url":"//images.ctfassets.net/h5bq1gt24416/4Le6S5V7KIEoRtHPVDb3ok/2c3554e9f929447545a4dc81aefc31cd/Diabetes_Plan_jumbo_L.jpg"}}},"type":"article","canonicalUrlLink":{"relativePath":"/meal-kits/diabetes-plan","absoluteUrl":null},"allowIndexing":true,"keywords":null}}},"pageContext":{"id":"30eced58-c440-51b8-95ae-675c540c7c13"}},"staticQueryHashes":["2874938835","3353766699","347068148","3475688630","3535798881","3593756770","3593756770","3593756770","3680153258","586106881","586106881"]}